import { View, ViewProps } from "@tarojs/components";
import { TStatus } from "@/types";
import "./index.less";
type Props = {
  type?: TStatus;
  children?: React.ReactNode;
  className?: string;
} & ViewProps;
const StatusConteiner = ({
  type = "default",
  className = "",
  children,
  ...others
}: Props) => {
  return (
    <View className={`status-container ${type} ${className}`} {...others}>
      {children}
    </View>
  );
};

export default StatusConteiner;
